package a入门.day5.whileDemo;

public class Test {
    public static void main1(String[] args) {
        int i=1000;
        while (i<100)
        {
            System.out.println("i=" + i);
            i++;
        }
        System.out.println("最后i="+i);
        System.out.println("-------------------");
        i=0;
        for(;i<100;i++){
            System.out.println("i="+i);
        }
    }

    public static void main(String[] args) {
        int i=0;
        do{
            System.out.println("i="+(++i));
        }while (i<100);
    }
}
